//
//  HeaderViewController.m
//  Game2048
//
//  Created by tarena on 16/3/25.
//  Copyright © 2016年 tarena. All rights reserved.
//

#import "HeaderViewController.h"
#import "HeaderView.h"


@interface HeaderViewController ()

@property (nonatomic ,strong) HeaderView *headerView;
@end

@implementation HeaderViewController

-( HeaderView *)headerView{
    if (!_headerView) {
        _headerView = [[HeaderView alloc]initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, 60)];
//        _headerView.leftBtn addTarget:self action:@selector(<#selector#>) forControlEvents:<#(UIControlEvents)#>
        [_headerView.refreshBtn addTarget:self action:@selector(refreshBtnClick:) forControlEvents:UIControlEventTouchUpInside];
        
    }
    return _headerView;
}



- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.headerView];
    
    
}


- (void)refreshBtnClick:(id)sender{
    NSLog(@"%s",__func__);
}

@end
